/* --- Product Page Specific Variables --- */
:root {
    --pd-primary-blue: #005093;
    --pd-secondary-beige: #fdf3e7;
    --pd-text-dark: #333333;
    --pd-text-light: #777777;
    --pd-border: #eaeaea;
    --pd-bg-light: #f9f9f9;

    --shop-bg: #f9f9f9;
    --shop-border: #eaeaea;
    --shop-text: #333333;
    --shop-light-text: #777777;
    --shop-primary: #005093; /* Matches dark-blue */
    --shop-secondary: #108575; /* Matches primary-teal */
    --shop-accent: #f6d04d; /* Matches primary-yellow */
    --shop-radius: 8px;
    --shop-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --shop-hover-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* --- Layout & Container --- */
.pd-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: var(--pd-font);
    color: var(--pd-text-dark);
}

.pd-main-section {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
}

/* --- Left Column: Gallery --- */
.pd-gallery {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-main-image {
    width: 100%;
    background-color: var(--pd-bg-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 4 / 5;
    transition: opacity 0.2s ease-in-out;
}

.pd-thumbnails {
    display: flex;
    gap: 15px;
}

.pd-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: var(--pd-bg-light);
}

.pd-thumb:hover {
    border-color: #ccc;
}

.pd-thumb.active {
    border-color: var(--pd-primary-blue);
}

/* --- Right Column: Product Details --- */
.pd-details {
    width: 50%;
    padding-top: 10px;
}

.pd-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pd-primary-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.pd-price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.pd-current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--pd-primary-blue);
}

.pd-old-price {
    font-size: 16px;
    color: var(--pd-text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.pd-tax-info {
    font-size: 13px;
    color: var(--pd-text-light);
    margin-bottom: 30px;
}

.pd-tax-info a {
    color: var(--pd-text-light);
    text-decoration: underline;
}

/* Quantity Selector */
.pd-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.pd-quantity-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-primary-blue);
}

.pd-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--pd-border);
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
}

.pd-quantity-selector button {
    background: var(--pd-bg-light);
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    color: var(--pd-primary-blue);
    font-size: 12px;
    transition: background 0.2s;
}

.pd-quantity-selector button:hover {
    background: #e0e0e0;
}

.pd-quantity-selector input {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--pd-border);
    border-right: 1px solid var(--pd-border);
    text-align: center;
    font-family: var(--pd-font);
    font-weight: 600;
    font-size: 14px;
    color: var(--pd-primary-blue);
    outline: none;
    -moz-appearance: textfield;
}

.pd-quantity-selector input::-webkit-outer-spin-button,
.pd-quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.pd-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.pd-btn {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px;
    font-family: var(--pd-font);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.pd-btn-primary {
    background-color: var(--pd-primary-blue);
    color: #ffffff;
}

.pd-btn-primary:hover {
    background-color: #111a2f;
    transform: translateY(-2px);
}

.pd-btn-secondary {
    background-color: var(--pd-secondary-beige);
    color: var(--pd-primary-blue);
}

.pd-btn-secondary:hover {
    background-color: #f5e4cd;
    transform: translateY(-2px);
}

/* Social Share Icons */
.pd-social-share {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.pd-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    color: var(--pd-primary-blue);
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pd-social-icon:hover {
    background-color: var(--pd-primary-blue);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Description List */
.pd-description {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--pd-border);
}

.pd-description ul {
    list-style-type: disc;
    padding-left: 20px;
}

.pd-description li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pd-text-dark);
    margin-bottom: 12px;
}

/* Meta Info Block */
.pd-meta-info {
    font-size: 12px;
    color: var(--pd-text-light);
    line-height: 1.8;
}

.pd-meta-info p {
    margin-bottom: 8px;
}

.pd-meta-info strong {
    color: var(--pd-primary-blue);
    font-weight: 600;
}

/* --- Sections: Related & Recently Viewed --- */
.pd-related-products,
.pd-recently-viewed {
    margin-bottom: 60px;
}

.pd-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pd-primary-blue);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--pd-border);
    padding-bottom: 15px;
}

.pd-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* --- Product Cards (Scoped for Product Page) --- */
.pd-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid var(--pd-border);
}

.pd-card:hover {
    transform: translateY(-5px);
}

.pd-card-image {
    position: relative;
    height: 220px;
    background: var(--pd-bg-light);
    overflow: hidden;
    padding: 10px;
}

.pd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.pd-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: var(--pd-text-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.pd-card-body {
    background: var(--pd-primary-blue);
    color: #fff;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pd-card-body h3 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
}

.pd-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pd-card-price {
    display: flex;
    flex-direction: column;
}

.pd-card-price .current {
    font-size: 14px;
    font-weight: 700;
}

.pd-card-price .old {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
}

.pd-card-cart {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pd-primary-blue);
    transition: background 0.2s ease;
}

.pd-card-cart:hover {
    background: #f6d04d; /* Assuming the yellow from homepage */
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    top: 30px;
    right: -350px; /* Hidden by default */
    background: #fff;
    color: var(--shop-text);
    padding: 15px 20px;
    border-radius: var(--shop-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--shop-secondary);
}

.toast-notification.show {
    right: 30px;
}

.toast-icon {
    color: var(--shop-secondary);
    font-size: 20px;
}

#toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .pd-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .pd-card:nth-child(5) {
        display: none;
    }
}

@media (max-width: 992px) {
    .pd-main-section {
        gap: 30px;
    }
    .pd-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pd-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .pd-main-section {
        flex-direction: column;
    }
    .pd-gallery, .pd-details {
        width: 100%;
    }
    .pd-title {
        font-size: 26px;
    }
    .pd-action-buttons {
        flex-direction: column;
    }
    .pd-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pd-card:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pd-thumbnails {
        justify-content: space-between;
    }
    .pd-thumb {
        width: calc(25% - 10px);
        height: 70px;
    }
    .pd-product-grid {
        grid-template-columns: 1fr;
    }
    .pd-card:nth-child(2) {
        display: none;
    }
    .toast-notification.show {
        right: 15px;
        left: 15px;
        top: 20px;
        justify-content: center;
    }
}