/* Colors of Ceylon Jewelry Catalog Styles */

:root {
    --primary-color: #8B6F47; /* Warm bronze/gold */
    --primary-dark: #816a47;
    --accent-color: #C19A6B; /* Light gold */
    --text-dark: #2C2C2C;
    --text-light: #666;
    --bg-light: #FAF8F5;
    --white: #FFFFFF;
    --border-color: #E5DDD5;
    --success-color: #4CAF50;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    padding: 0;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.header-simple {
    padding: 50px 50px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    position: relative;
}

.header-simple .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}
.header-logo {
    width: 150px;
    height: auto;
    flex-shrink: 0;
    padding-right: 20px;
    margin-right: 50px;
}

.header-center {
    display: flex;
    justify-content: center;
    text-align: center;
}
.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
    flex-shrink: 0;

}

.header-spacer {
    width: 150px;
    flex-shrink: 0;
}

.header-media-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.header-video {
    width: 40%;
    height: 350px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-shrink: 1;
    object-fit: cover;
}

.header-side-image {
    width: 30%;
    height: 350px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    object-fit: cover;
    flex-shrink: 1;
}

.logo {
    max-width: 160px;
    height: auto;
    flex-shrink: 0;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;   
    text-align: center;
    flex-shrink: 1;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin: 20px 0 0 0 0;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 10px;
    margin-right: 50px;

}

.tagline {
    font-size: 1.3rem;
    font-style: normal;
    margin-top: 20px;
    margin-bottom: 50px;
    color: var(--text-light);
    font-weight: 300;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 10px;
    margin-right: 50px;

    
}

@media (max-width: 900px) {
    .header-top-row {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    
    .header-center {
        width: 100%;
    }
    
    .header-spacer {
        display: none;
    }
    
    .logo {
        max-width: 160px;
        margin-bottom: 0;
    }
    
    .brand-name {
        font-size: 2.5rem;
        padding-right: 20px;
        margin-right: 30px;  
    }
    
    .tagline {
        font-size: 1.1rem;
        padding-right: 20px;
        margin-right: 30px;  
    }
}

@media (max-width: 768px) {
    .header-media-container {
        gap: 8px;
        padding: 0 10px;
    }
    
    .header-video {
        width: 40%;
        height: 200px;
        flex-shrink: 1;
    }
    
    .header-side-image {
        width: 30%;
        height: 200px;
        flex-shrink: 1;
    }
    
    .logo {
        max-width: 140px;
        margin-bottom: 0;
    }
    
    .brand-name {
        font-size: 2rem;
        letter-spacing: 2px;
        padding-right: 20px;
        margin-right: 30px;  
    }
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.wishlist-count {
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Main Content */
main {
    padding: 60px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 30px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.section-title-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    width: 280px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(139, 111, 71, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 35px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: var(--primary-color);
}

.search-results-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.search-results-info strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.no-results svg {
    stroke: var(--border-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-icon:hover {
    transform: scale(1.1);
}

.wishlist-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.wishlist-icon.active svg {
    fill: var(--primary-color);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-summary {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.view-details-btn {
    margin-top: auto;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 6px 12px;              /* Smaller */
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;              /* Smaller text */
    transition: all 0.3s ease;
    width: fit-content;             /* Not full width */
    align-self: flex-start;         /* Align left */
    display: inline-block;          /* Compact */
}

.view-details-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Confirm modal should be above all other modals */
#confirmModal {
    z-index: 3000;
}

#confirmModal .modal-content {
    z-index: 3001;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-dark);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group select {
    flex: 0 0 140px;
}

.phone-input-group input {
    flex: 1;
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 5px;
}

input.invalid {
    border-color: #d32f2f;
}

.selected-items {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 5px;
}

.selected-items h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #D5CDC5;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message svg {
    stroke: var(--success-color);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 2rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-detail-image {
    width: 100%;
    border-radius: 10px;
}

.product-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-detail-summary {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.product-detail-additional {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-detail-additional strong {
    color: var(--primary-color);
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.product-detail-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.product-detail-actions .btn-primary {
    flex: 1;
}

.product-detail-actions .btn-icon-only {
    flex: 0 0 50px;
    padding: 10px;
}

@media (max-width: 600px) {
    .product-detail-actions {
        flex-wrap: wrap;
    }
    
    .product-detail-actions .btn-primary {
        flex: 1 1 calc(100% - 60px);
    }
    
    .product-detail-actions .btn-icon-only {
        flex: 0 0 50px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 0;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* About Us Section */
.about-section {
    background-color: var(--bg-light);
    padding: 80px 20px 10px 10px;
    margin-top: 150px;
    border-top: 1px solid var(--primary-dark);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px; 
}

.nav-link-about {
    text-decoration: none;
    color: #666;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link-about:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 80px 0;
    margin-top: 0px;
    overflow: hidden;
}


/* Gallery Image Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.gallery-modal-close:hover {
    color: var(--accent-color);
}
/* Gallery Navigation Arrows */
/* Gallery Navigation Arrows */
.carousel-container {
    margin-bottom: 30px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    position: relative;
    width: 100%;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll-left 120s linear infinite;
    width: fit-content;
}

.carousel-reverse .carousel-track {
    animation: scroll-right 120s linear infinite;
}

.carousel-track.paused {
    animation-play-state: paused;
}

.carousel-item {
    flex-shrink: 0;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.carousel-item img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .header-simple {
        padding: 60px 10px;
        background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
        position: relative;
    }

    .header-simple .container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .main-nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-image-container {
        height: 280px;
    }
    
    .carousel-item {
        height: 220px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-input-group select {
        flex: 1;
    }
    
    .carousel-item {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .header-video {
        width: 35%;
        height: 160px;
    }
    
    .header-side-image {
        width: 32%;
        height: 160px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-summary {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .carousel-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .header-video {
        width: 30%;
        height: 120px;
    }
    
    .header-side-image {
        width: 35%;
        height: 120px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .product-summary {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .carousel-item {
        height: 180px;
    }
}

/* Product Price */
.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 15px 0;
}

/* Quantity Selector Styles */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-btn:active {
    transform: scale(0.95);
}

#quantityInput {
    width: 100px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
}

#quantityInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Small quantity controls for wishlist */
.wishlist-qty-control,
.form-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Inline quantity controls in product detail */
.product-detail-wishlist-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.product-detail-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.qty-btn-inline {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn-inline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input-inline {
    width: 60px;
    height: 35px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
}

.qty-input-inline:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-remove {
    background-color: #dc3545;
    color: var(--white);
}

.btn-remove:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Success toast notification */
.success-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.3s ease;
}

.success-toast.show {
    bottom: 30px;
}

/* Product notes textarea */
.product-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.product-notes-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wishlist-notes-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.wishlist-notes-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-notes-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.85rem;
    background-color: var(--bg-light);
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-notes-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.qty-btn-small {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn-small:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input-small {
    width: 60px;
    height: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-dark);
}

.qty-input-small:focus {
    outline: none;
    border-color: var(--primary-color);
}

.qty-label {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 10px;
}

/* Wishlist item with quantity */
.wishlist-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.wishlist-item-info {
    flex: 1;
}

/* Form wishlist item with quantity */
.form-wishlist-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.form-wishlist-item:last-child {
    border-bottom: none;
}

/* Remove number input spinners for Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Remove number input spinners for Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Responsive quantity controls */
@media (max-width: 480px) {
    .quantity-selector {
        gap: 10px;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    #quantityInput {
        width: 80px;
        height: 40px;
        font-size: 20px;
    }
}

/* Detail modal quantity control - inline with button */
.detail-quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 30px;
}

/* Adjust button styling in detail modal */
.product-detail-actions .btn-primary {
    flex: 1;
    margin-right: 15px;
}

/* Product Detail Gallery */
.product-detail-main-media {
    width: 100%;
    border-radius: 10px;
    position: relative;
    background-color: var(--bg-light);
}

.product-detail-image,
.product-detail-video {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.product-detail-video {
    max-height: 600px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.product-thumbnail-video {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-thumbnail-video:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail-video.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.product-thumbnail-video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.product-thumbnail-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .product-thumbnail,
    .product-thumbnail-video {
        width: 60px;
        height: 60px;
    }
}

.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
    margin-left: auto;
    margin-bottom: 20px;
    flex-shrink: 0;

}

.header-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.header-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

/* Update header-top-row to accommodate buttons */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
}

.header-spacer {
    display: none; /* No longer needed */
}

/* Mobile responsive */
@media (max-width: 900px) {
    .header-buttons {
        position: absolute;
        top: 10px;
        right: 20px;
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        min-width: 85px;
    }
    
    .header-top-row {
        flex-direction: column;
        text-align: center;
        position: relative;
    }
}

@media (max-width: 480px) {
    .header-buttons {
        top: 5px;
        right: 10px;
        gap: 5px;
    }
    
    .header-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
        min-width: 75px;
    }
}
#productModal a {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

#productModal a:hover {
    color: var(--primary-color) !important;
}


@media (max-width: 768px) {
    .modal-content {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        transform: scale(0.7);
        transform-origin: center;
    }
}
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .product-name,
.product-card .product-summary,
.product-card .product-price {
    flex-shrink: 0;
}

.product-card .product-summary {
    flex-grow: 1;
    margin-bottom: 15px;
}
.product-name {
    margin-bottom: 5px;  /* Reduce from default */
}

.product-price {
    margin-top: 5px;
    margin-bottom: 5px;  /* Reduce from default */
}

.product-summary {
    margin-top: 5px;
}