:root {
    --primary-color: #1A202C;
    --primary-light: #2D3748;
    --primary-dark-hover: #0A111F;
    --primary-gradient-start: #2D3748;
    --primary-gradient-end: #1A202C;
    --secondary-color: #E2E8F0; 
    --secondary-dark-hover: #CBD5E0;
    --accent-color: #C6A874; 
    --accent-dark-hover: #B59762;
    --text-color: #1A202C;
    --light-text: #5A6474; 
    --background-color: #F8F9FA;
    --surface-color: #FFFFFF; 
    --border-color: #E2E8F0; 
    --primary-btn-text-color: #FFFFFF;
    --shadow-extra-light: rgba(45, 55, 72, 0.04);
    --shadow-light: rgba(45, 55, 72, 0.06);
    --shadow-medium: rgba(45, 55, 72, 0.1);
    --shadow-strong: rgba(45, 55, 72, 0.15);
    --shadow-deep: rgba(45, 55, 72, 0.2);
    --skeleton-bg: #E2E8F0;
    --skeleton-highlight: #FFFFFF;
    --font-family-primary: 'Poppins', sans-serif;
    --font-family-headings: 'Poppins', sans-serif;
    --font-size-base: 17px;
    --border-radius-base: 6px; 
    --transition-duration: 0.3s;
    --transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --hero-transition-duration: 0.7s;
}

body.dark-mode {
    --primary-color: #C6A874; 
    --primary-light: #D4B585;
    --primary-dark-hover: #B59762;
    --primary-gradient-start: #D4B585;
    --primary-gradient-end: #C6A874;
    --secondary-color: #2A3241;
    --secondary-dark-hover: #353F52;
    --accent-color: #C6A874;
    --accent-dark-hover: #B59762;
    --text-color: #E2E8F0; 
    --light-text: #8892B0;
    --background-color: #0A111F; 
    --surface-color: #1A202C; 
    --border-color: #2A3241; 
    --primary-btn-text-color: #0A111F;
    --shadow-extra-light: rgba(2, 4, 8, 0.1);
    --shadow-light: rgba(2, 4, 8, 0.2);
    --shadow-medium: rgba(2, 4, 8, 0.4);
    --shadow-strong: rgba(2, 4, 8, 0.6);
    --shadow-deep: rgba(2, 4, 8, 0.8);
    --skeleton-bg: #1A202C;
    --skeleton-highlight: #2A3241;
}

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

body {
    font-family: var(--font-family-primary);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
    background-attachment: fixed;
    background-size: cover;
    background-image:
        linear-gradient(rgba(240, 244, 247, 0.8), rgba(240, 244, 247, 0.8)),
        url('AA.jpg');
    background-blend-mode: overlay, normal;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: var(--background-color);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 6px;
    border: 3px solid var(--background-color);
    transition: background-color 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

body.dark-mode body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-color: var(--background-color);
}

body.dark-mode body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.4rem;
    letter-spacing: -0.5px;
}

h1, h2, h3, h4,
.product-info h3,
.modal-product-info h3,
.favorite-card-header h3 {
    font-family: var(--font-family-headings);
}


h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 800;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(255, 145, 77, 0.5);
    transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}

section.visible h2::after {
    width: 120px;
}

h3 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h4 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--primary-dark-hover);
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-duration) var(--transition-timing-function);
}

a:hover {
    color: var(--primary-dark-hover);
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border: none;
    border-radius: var(--border-radius-base);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all var(--transition-duration) var(--transition-timing-function);
    white-space: nowrap;
    box-shadow: 0 8px 20px var(--shadow-medium);
    gap: 0.8em;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover:not(:disabled) {
    transform: translateY(-7px) scale(1.02);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: transform 0.6s ease-in-out;
    opacity: 0;
    z-index: 1;
}

.btn:hover::before {
    transform: skewX(-20deg) translateX(250%);
    opacity: 1;
}

.btn i {
    font-size: 1.25em;
}

.btn:disabled {
    background: var(--light-text);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn:disabled::before {
    display: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    from {
        transform: scale(0);
        opacity: 0.8;
        background-color: rgba(255, 255, 255, 0.8);
    }

    to {
        transform: scale(4);
        opacity: 0;
        background-color: rgba(201, 176, 131, 0.5);
    }
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--primary-btn-text-color);
    box-shadow: 0 10px 25px var(--shadow-strong);
    border: 1px solid var(--primary-dark-hover);
}

body.dark-mode .btn-primary:hover:not(:disabled) {
    box-shadow: 0 15px 35px rgba(201, 176, 131, 0.3);
}

body.dark-mode h2::after {
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--primary-gradient-end) 0%, var(--primary-gradient-start) 100%);
    box-shadow: 0 15px 35px rgba(62, 90, 125, 0.6);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 5px 10px rgba(62, 90, 125, 0.3);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(127, 140, 141, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #f5f8fa;
    border-color: var(--primary-light);
    box-shadow: 0 12px 25px rgba(127, 140, 141, 0.2);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 5px 10px rgba(127, 140, 141, 0.1);
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 12px 25px rgba(231, 76, 60, 0.45);
}

.btn-danger:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.2);
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.4s ease, background-color 0.4s ease,
        box-shadow 0.4s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#sidebar-toggle-btn {
    font-size: 1.8rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-color);
}

@keyframes shimmer {
    0% {
        background-position: -300% 0;
    }

    100% {
        background-position: 300% 0;
    }
}

header .logo h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    transition: all 0.4s var(--transition-timing-function);
    background: linear-gradient(100deg,
            var(--primary-color) 40%,
            var(--accent-color) 50%,
            var(--primary-color) 60%);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shimmer 5s linear infinite;
}

header .logo h1:hover {
    color: transparent;
    transform: scale(1.03) rotate(-1deg);
    animation-play-state: paused;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

header nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.4px;
    transition: all var(--transition-duration) var(--transition-timing-function);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.02);
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s var(--transition-timing-function);
}

header nav a:hover::after,
header nav a.active::after {
    width: 100%;
}

header nav a:hover,
header nav a.active {
    color: var(--primary-color);
}

header nav a i {
    color: var(--light-text);
    transition: color var(--transition-duration);
    margin-right: 0.4em;
    font-size: 1.1em;
}

header nav a:hover i,
header nav a.active i {
    color: var(--primary-color);
}

.header-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.header-scrolled .logo h1 {
    font-size: 2.2rem;
}

body.dark-mode .header-scrolled {
    background-color: rgba(36, 47, 56, 0.9);
}

.scroll-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--border-color);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent-color) 100%);
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

body.dark-mode .scroll-progress-bar-container {
    background-color: var(--border-color);
}

body.dark-mode .scroll-progress-bar {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@800&display=swap');

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh; 
    padding: 3rem 4rem;
    position: relative;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    background: url('AA.jpg') no-repeat center center/cover;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

#hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; 
    animation: fadeInSlideUp 1.2s forwards cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem; 
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px; 
}

#hero p {
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#hero .btn {
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50px; 
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    box-shadow: none; 
}

#hero .btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

#hero .btn i {
    display: none; 
}

@media (max-width: 768px) {
    #hero h2 {
        font-size: 3rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
    #hero .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

section {
    padding: 7rem 0;
    background-color: var(--surface-color);
    margin-top: 4.5rem;
    border-radius: var(--border-radius-base);
    box-shadow: 0 15px 45px var(--shadow-medium);
    opacity: 0;
    transform: translateY(100px);
    transition: background-color 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 2;
    transform-origin: bottom;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

section.visible::before {
    transform: scaleY(0);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2,
section h3,
section p,
section .btn {
    opacity: 0;
    transform: translateY(40px) skewY(3deg);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top left;
}

section.visible h2,
section.visible h3,
section.visible p,
section.visible .btn {
    opacity: 1;
    transform: translateY(0) skewY(0);
}

section.visible h2 {
    transition-delay: 0.2s;
}

section.visible h3 {
    transition-delay: 0.3s;
}

section.visible p {
    transition-delay: 0.4s;
}

section.visible .btn {
    transition-delay: 0.6s;
}

.section-divider {
    height: 70px;
    background: linear-gradient(to right, transparent, rgba(62, 90, 125, 0.15), transparent);
    margin: 4rem 0;
    border-radius: 8px;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    opacity: 0;
    animation: light-streak 2.5s ease-out infinite;
    animation-play-state: paused;
}

section.visible+.section-divider::after {
    animation-play-state: running;
}

@keyframes light-streak {
    0% {
        background-position: -200px 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        background-position: calc(100% + 200px) 0;
        opacity: 0;
    }
}

#search-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
    margin-top: 0;
    box-shadow: 0 10px 30px var(--shadow-light);
    border-radius: var(--border-radius-base);
    text-align: center;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.search-bar input[type="text"] {
    flex-grow: 1;
    padding: 20px 30px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-base);
    font-size: 1.25rem;
    transition: border-color var(--transition-duration), box-shadow var(--transition-duration);
    background-color: var(--background-color);
    color: var(--text-color);
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 8px rgba(62, 90, 125, 0.28);
    background-color: var(--surface-color);
}

.search-bar button {
    padding: 20px 45px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    padding-top: 40px;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-base);
    box-shadow: 0 18px 45px var(--shadow-medium);
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow var(--transition-duration) var(--transition-timing-function);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    opacity: 0;
    transform: translateY(80px) scale(0.98);
    transition-delay: 0s;
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    transition-delay: 0s !important;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-grid .product-card.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.product-grid .product-card.visible:nth-child(2) {
    transition-delay: 0.2s;
}

.product-grid .product-card.visible:nth-child(3) {
    transition-delay: 0.3s;
}

.product-grid .product-card.visible:nth-child(4) {
    transition-delay: 0.4s;
}

.product-grid .product-card.visible:nth-child(5) {
    transition-delay: 0.5s;
}

.product-grid .product-card.visible:nth-child(6) {
    transition-delay: 0.6s;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-base);
    pointer-events: none;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 70%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.product-card:hover::before {
    left: 150%;
}

.product-card .product-image-container {
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-card img {
    width: 100%;
    height: 350px; 
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    min-height: 4.5rem;
}

.product-info .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    order: -1;
}

.product-rating {
    color: #ffca28;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.product-rating .fa-star {
    margin: 0 1px;
}

.modal-product-info .product-rating {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.low-stock-badge {
    position: absolute;
    top: 15px;
    right: -8px;
    left: auto;
    padding: 6px 22px 6px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #A88747, #E4C57F, #A88747);
    background-size: 250% 100%;
    border-left: 1px solid #E4C57F;
    border-top: 1px solid #E4C57F;
    border-bottom: 1px solid #A88747;
    border-right: none;
    z-index: 4;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 0 4px rgba(255, 255, 255, 0.2);
    clip-path: polygon(0% 0%, 100% 0%, 85% 50%, 100% 100%, 0% 100%);
    animation: premium-shimmer 3s infinite linear,
        subtle-bob 4s infinite ease-in-out;
    border-radius: 0;
}

.pre-order-badge {
    position: absolute;
    top: 15px;
    left: -8px;
    padding: 6px 15px 6px 22px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #2c3e50, #465a72, #2c3e50);
    background-size: 250% 100%;
    border-right: 1px solid #465a72;
    border-top: 1px solid #465a72;
    border-bottom: 1px solid #2c3e50;
    border-left: none;
    z-index: 4;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.2),
        inset 0 0 4px rgba(255, 255, 255, 0.1);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15% 50%);
    animation: premium-shimmer 3s infinite linear,
        subtle-bob 4s infinite ease-in-out;
    border-radius: 0;
}

@keyframes premium-shimmer {
    0% {
        background-position: 150% 0;
    }

    100% {
        background-position: -150% 0;
    }
}

@keyframes subtle-bob {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

.size-options {
    display: flex;
    gap: 18px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.size-option {
    display: inline-block;
    padding: 14px 25px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-base);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.4s var(--transition-timing-function);
    background-color: var(--background-color);
    color: var(--light-text);
    font-weight: 500;
}

.size-option:hover {
    background-color: #eaf1f7;
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-extra-light);
}

.size-option.selected {
    background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(62, 90, 125, 0.45);
    transform: scale(1.08);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-top: auto;
}

.product-actions .add-to-cart {
    grid-column: 1 / -1;
}

.product-actions .quick-view-btn,
.product-actions .add-to-favorite {
    background-color: var(--background-color);
    color: var(--light-text);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-extra-light);
    grid-row: 2;
}

.product-actions .quick-view-btn {
    grid-column: 1 / 2;
}

.product-actions .add-to-favorite {
    grid-column: 2 / 3;
}

.product-actions .add-to-favorite:hover,
.product-actions .quick-view-btn:hover {
    background-color: #eaf1f7;
    color: var(--primary-dark-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.product-actions .add-to-favorite.favorited {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.product-actions .add-to-favorite.favorited i {
    color: #fff;
}

.info-message {
    text-align: center;
    font-style: italic;
    color: var(--light-text);
    padding: 40px;
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-base);
    margin-top: 4rem;
    background-color: var(--surface-color);
    box-shadow: 0 8px 20px var(--shadow-light);
    font-size: 1.2rem;
    line-height: 1.6;
}

.cart-items-container {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-base);
    padding: 20px;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.cart-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-base);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px var(--shadow-medium);
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 2rem;
    align-items: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.cart-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px -10px var(--shadow-strong);
}

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

.cart-item img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--border-radius-base);
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.cart-item .item-details {
    flex-grow: 1;
}

.cart-item .item-details h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.cart-item .item-details p {
    font-size: 1rem;
    color: var(--light-text);
    margin: 0;
}

.cart-item .quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 40px;
}

.cart-item .quantity-controls button {
    background-color: #eaf1f7;
    border: 1px solid #d8e2ed;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(62, 90, 125, 0.25);
    transition: all 0.3s var(--transition-timing-function);
    cursor: pointer;
}

.cart-item .quantity-controls button:hover {
    background-color: #d8e2ed;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 15px rgba(62, 90, 125, 0.35);
}

.cart-item .item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.cart-summary {
    background: linear-gradient(160deg, var(--surface-color) 0%, var(--background-color) 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: left;
    margin-top: 4.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px -15px var(--shadow-strong);
}

.cart-summary p,
.cart-summary h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 500;
}

.cart-summary h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
    margin-bottom: 1.5rem;
}

.cart-summary #checkout-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    margin-top: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.checkout-form-container {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-base);
    box-shadow: 0 18px 50px var(--shadow-strong);
    padding: 50px 70px;
    margin-top: 5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

#checkout-header h3 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-dark-hover);
    font-size: 2.8rem;
    letter-spacing: -1.5px;
}

#progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
}

#progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    width: 80%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 0;
}

#progress-bar::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--accent-color) 0%,
            var(--primary-color) 50%,
            var(--accent-color) 100%);
    background-size: 200% 100%;
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    animation: flow-gradient 2s linear infinite;
}

@keyframes flow-gradient {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

#progress-bar.step-2::after {
    width: 40%;
}

#progress-bar.step-3::after {
    width: 80%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
    z-index: 2;
    position: relative;
}

.progress-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    transition: background-color 0.5s ease, color 0.5s ease;
    border: 4px solid var(--background-color);
}

.progress-step p {
    font-weight: 500;
    color: var(--light-text);
    transition: color 0.5s ease;
    font-size: 1rem;
    margin: 0;
}

.progress-step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
}

.progress-step.active p {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-step {
    display: none;
    animation: fadeInStep 0.6s forwards;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.checkout-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 2.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.2rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-base);
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family-primary);
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-group {
    position: relative;
}

.form-group::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}

.form-group:focus-within::after {
    transform: scaleX(1);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.form-group small {
    display: block;
    margin-top: 12px;
    font-size: 1.05rem;
    color: var(--light-text);
}

.form-group-radio {
    margin-bottom: 2.8rem;
}

.form-group-radio label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.2rem;
}

.radio-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-base);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.radio-tile::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(62, 90, 125, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.radio-tile:hover::before {
    width: 250px;
    height: 250px;
}

.radio-tile img,
.radio-tile span {
    position: relative;
    z-index: 1;
}

.radio-tile:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px var(--shadow-light);
}

.radio-option input[type="radio"]:checked+.radio-tile {
    border-color: var(--primary-color);
    background-color: #eaf1f7;
    box-shadow: 0 0 0 4px rgba(62, 90, 125, 0.2);
    animation: pop-in 0.4s ease-out;
}

.radio-tile img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 15px;
}

.radio-tile span {
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-navigation .btn {
    padding: 18px 40px;
    font-size: 1.2rem;
}

#submit-order-btn {
    width: 100%;
}

.order-summary-final {
    margin-top: 3rem;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: var(--border-radius-base);
    border: 1px solid var(--border-color);
}

.order-summary-final h4 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

#final-order-summary p {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

#final-order-summary span {
    font-weight: 600;
}

#final-order-summary .total-row {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark-hover);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

#riwayat-pesanan .info-message {
    margin-top: 0;
}

#order-history-list {
    display: grid;
    gap: 35px;
}

.order-history-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.order-history-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--primary-light);
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.order-history-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-dark-hover);
}

.order-history-header p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--light-text);
}

.order-status {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    letter-spacing: 0.5px;
}

.order-status.completed {
    background-color: #e8f5e9;
    color: #388e3c;
}

body.dark-mode .order-status.completed {
    background-color: #2c4b32;
    color: #a5d6a7;
}

.order-history-body {
    padding: 1.5rem 2rem;
}

.order-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-item-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.order-item-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-base);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.order-item-info {
    flex-grow: 1;
}

.order-item-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.order-item-qty {
    font-size: 0.9rem;
    color: var(--light-text);
}

.order-item-price {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    text-align: right;
    min-width: 100px;
}

.order-history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.order-total strong {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    gap: 1rem;
}

.order-actions .btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.order-actions .btn:disabled {
    background: var(--skeleton-bg);
    cursor: not-allowed;
    color: var(--light-text);
    box-shadow: none;
}

footer {
    background-color: #0D0D0D;
    color: #bdc3c7;
    padding: 6rem 40px;
    margin-top: 10rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(62, 90, 125, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 50px 70px; 
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-section a {
    color: #e0e6ec;
    text-decoration: none;
    transition: color var(--transition-duration);
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-section .fab,
.footer-section .fas {
    font-size: 1.6em;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

.back-to-top {
    position: fixed;
    bottom: 45px;
    right: 45px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark-hover));
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(255, 145, 77, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.8);
    transition: opacity 0.5s ease,
        visibility 0.5s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(45deg, var(--accent-dark-hover), var(--accent-color));
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 145, 77, 0.6);
}

.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.85);
    justify-content: center;
    align-items: center;
    padding: 30px;
    animation: fadeInBackground 0.5s forwards;
    backdrop-filter: blur(15px);
}

@keyframes fadeInBackground {
    from {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }

    to {
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(15px);
    }
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 60px;
    border-radius: 25px;
    width: 95%;
    max-width: 1100px;
    box-shadow: 0 25px 60px var(--shadow-deep);
    position: relative;
    transform: translateY(-100px) scale(0.92);
    opacity: 0;
    animation: dropInScale 0.7s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid var(--primary-light);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(62, 90, 125, 0.05) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 90% 90%, rgba(62, 90, 125, 0.05) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes dropInScale {
    from {
        transform: translateY(-120px) scale(0.88);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-button {
    color: var(--light-text);
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 48px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.close-button:hover,
.close-button:focus {
    color: #e74c3c;
    transform: rotate(180deg) scale(1.2);
}

.modal-body {
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

.modal-body img {
    flex-basis: 50%;
    max-width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-base);
    box-shadow: 0 10px 25px var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.modal-product-info {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.modal-product-info h3 {
    font-size: 3.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -1.5px;
}

.modal-product-info p#modal-product-description {
    font-size: 1.35rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.modal-product-info .price {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1.5px;
}

.modal-product-info .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 3.5rem;
    justify-content: center;
}

.modal-product-info .size-option {
    padding: 16px 28px;
    font-size: 1.15rem;
    border-width: 2px;
}

.modal-buttons-group {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: auto;
}

.modal-buttons-group .btn {
    flex-grow: 1;
    font-size: 1.2rem;
}

.modal-buttons-group .add-to-favorite {
    flex-grow: 0;
    flex-basis: 70px;
    padding: 18px;
}

.modal-utility-buttons {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    justify-content: center;
}

.btn-utility {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 500;
}

.btn-utility:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.skeleton-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-base);
    box-shadow: 0 10px 30px var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(90deg, var(--skeleton-bg), var(--skeleton-highlight), var(--skeleton-bg));
    background-size: 200% 100%;
    animation: loadingPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.skeleton-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-text {
    height: 25px;
    background: linear-gradient(90deg, var(--skeleton-bg), var(--skeleton-highlight), var(--skeleton-bg));
    background-size: 200% 100%;
    animation: loadingPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
    border-radius: 6px;
}

.skeleton-text-lg {
    width: 90%;
    height: 42px;
}

.skeleton-text-sm {
    width: 70%;
}

.skeleton-text-xs {
    width: 50%;
}

.skeleton-button-group {
    display: grid;
    grid-template-columns: 1fr 60px 60px;
    gap: 10px;
    margin-top: 20px;
}

.skeleton-button-main {
    height: 55px;
    grid-column: 1 / -1;
    border-radius: var(--border-radius-base);
    background: linear-gradient(90deg, var(--skeleton-bg), var(--skeleton-highlight), var(--skeleton-bg));
    background-size: 200% 100%;
    animation: loadingPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.skeleton-button-secondary {
    height: 55px;
    grid-row: 2;
    border-radius: var(--border-radius-base);
    background: linear-gradient(90deg, var(--skeleton-bg), var(--skeleton-highlight), var(--skeleton-bg));
    background-size: 200% 100%;
    animation: loadingPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes loadingPulse {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

body.no-scroll {
    overflow: hidden;
}

#toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 95%;
    pointer-events: none;
}

.toast-notification {
    background-color: #3b4d5a;
    color: #fff;
    padding: 20px 40px;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.6s ease-out;
    min-width: 350px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    font-size: 1.15rem;
    font-weight: 500;
    pointer-events: auto;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-notification.success {
    background-color: var(--secondary-color);
}

.toast-notification.error {
    background-color: #e74c3c;
}

.toast-notification.warning {
    background-color: var(--accent-color);
}

.toast-notification.info {
    background-color: var(--primary-color);
}

#confirmation-modal {
    z-index: 1002;
}

#confirmation-modal .modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 60px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 50px var(--shadow-deep);
    text-align: center;
    transform: translateY(-100px) scale(0.92);
    opacity: 0;
    animation: dropInScale 0.7s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid var(--primary-light);
}

#confirmation-modal .modal-content p {
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
}

#size-guide-modal .modal-content {
    max-width: 700px;
}

#size-guide-modal h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#size-guide-modal p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.size-guide-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-base);
    box-shadow: 0 5px 15px var(--shadow-light);
    background-color: var(--surface-color);
}

#size-chart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

#size-chart-table th,
#size-chart-table td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
}

#size-chart-table thead th {
    background-color: var(--primary-light);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#size-chart-table tbody tr:nth-child(odd) {
    background-color: var(--background-color);
}

#size-chart-table tbody tr:hover {
    background-color: #eaf1f7;
}

#size-chart-table tbody td {
    font-weight: 500;
}

#size-guide-modal .notes {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-top: 15px;
    text-align: center;
}

body.dark-mode .cart-summary,
body.dark-mode .radio-tile {
    background-color: #2a3640;
}

body.dark-mode .radio-option input[type="radio"]:checked+.radio-tile {
    background-color: #355070;
}

body.dark-mode #dark-mode-toggle {
    color: var(--text-color);
}

body.dark-mode header {
    background-color: rgba(36, 47, 56, 0.96);
}

body.dark-mode footer {
    background-color: #11181d;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

#search-suggestions-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius-base) var(--border-radius-base);
    box-shadow: 0 15px 30px var(--shadow-medium);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.suggestion-item:hover {
    background-color: #eaf1f7;
}

body.dark-mode .suggestion-item:hover {
    background-color: #2c3a47;
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.suggestion-item span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.flying-product-clone {
    position: fixed;
    z-index: 1002;
    border-radius: 50%;
    transition: all 0.9s cubic-bezier(0.55, 0.04, 0.78, 0.44);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    will-change: top, left, width, height, opacity;
}

@keyframes cartPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4) rotate(-5deg);
    }

    60% {
        transform: scale(0.9) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.cart-pop-animation {
    animation: cartPop 0.6s ease-in-out;
}

.product-info h3 {
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.product-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease-in-out;
}

.product-card:hover .product-info h3::after {
    width: 80%;
}

.trust-badges {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
}

.trust-badge i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

body.dark-mode .trust-badge i {
    color: var(--primary-light);
}

#modal-recommendations {
    width: 100%;
    margin-top: 20px;
}

.recommendations-title {
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-text);
}

body.dark-mode .recommendations-title {
    color: var(--light-text);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.recommendation-card {
    background: var(--background-color);
    border-radius: var(--border-radius-base);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.dark-mode .recommendation-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.recommendation-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.recommendation-card-info {
    padding: 10px;
}

.recommendation-card-info h5 {
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dark-text);
}

body.dark-mode .recommendation-card-info h5 {
    color: var(--light-text);
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    #hero {
        margin: 1.5rem;
    }

    #hero h2 {
        font-size: 4.5rem;
    }

    #hero p {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 50px;
    }

    .product-card img {
        height: 300px;
    }

    .modal-content {
        max-width: 900px;
        padding: 50px;
    }

    .modal-body {
        gap: 50px;
    }

    .modal-product-info h3 {
        font-size: 2.8rem;
    }

    .modal-product-info .price {
        font-size: 2.4rem;
    }

    .cart-item img {
        width: 110px;
        height: 110px;
    }

    .cart-item .item-details h4 {
        font-size: 1.35rem;
    }

    .cart-item .item-price {
        font-size: 1.45rem;
    }

    .checkout-form-container {
        padding: 50px 60px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }

    header .logo h1 {
        font-size: 2.5rem;
    }

    header nav ul {
        gap: 1.8rem;
    }

    header nav a {
        font-size: 1.05rem;
    }

    #hero {
        padding: 10rem 30px;
        min-height: 65vh;
        margin: 1rem;
    }

    #hero h2 {
        font-size: 3.8rem;
    }

    #hero p {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    #hero .btn {
        padding: 18px 45px;
        font-size: 1.3rem;
    }

    section {
        padding: 6rem 0;
        margin-top: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
        padding-bottom: 0.7rem;
    }

    h2::after {
        width: 100px;
        height: 5px;
    }

    .search-bar {
        flex-direction: column;
        gap: 20px;
    }

    .search-bar input,
    .search-bar button {
        width: 100%;
        max-width: none;
        font-size: 1.15rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .product-card img {
        height: 280px;
    }

    .product-info {
        padding: 2.5rem;
    }

    .product-info h3 {
        font-size: 1.6rem;
    }

    .product-info .price {
        font-size: 1.5rem;
    }

    .size-option {
        padding: 12px 22px;
        font-size: 1.05rem;
    }

    .cart-items-container {
        padding: 15px;
    }

    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 30px 10px;
    }

    .cart-item img {
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
    }

    .cart-item .item-details,
    .cart-item .quantity-controls,
    .cart-item .item-price {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .cart-item .quantity-controls {
        justify-content: center;
    }

    .cart-item .quantity-controls button {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .cart-summary {
        padding: 40px;
    }

    .cart-summary h3 {
        font-size: 2.2rem;
    }

    .checkout-form-container {
        padding: 40px 30px;
    }

    #checkout-header h3 {
        font-size: 2.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-section p {
        justify-content: flex-start;
    }

    .footer-section {
        text-align: left;
    }

    .back-to-top {
        width: 65px;
        height: 65px;
        bottom: 40px;
        right: 40px;
        font-size: 2rem;
    }

    .modal-content {
        width: 90%;
        padding: 45px;
    }

    .modal-body {
        flex-direction: column;
        gap: 45px;
        align-items: center;
    }

    .modal-body img {
        max-width: 90%;
        flex-basis: auto;
    }

    .modal-product-info {
        flex-basis: auto;
        text-align: center;
    }

    .modal-product-info h3 {
        font-size: 2.5rem;
    }

    .modal-product-info .price {
        font-size: 2.2rem;
    }

    .modal-product-info .size-options {
        justify-content: center;
    }

    .modal-utility-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.7;
    }

    .container {
        padding: 0 20px;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-left {
        flex-grow: 1;
    }

    header nav {
        display: none;
    }

    #sidebar-toggle-btn {
        display: block;
        order: -1;
    }

    header .logo h1 {
        font-size: 2.2rem;
    }

    #hero {
        padding: 8rem 20px;
        min-height: 55vh;
        margin: 0.5rem;
        border-radius: 12px;
    }

    #hero h2 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    #hero .btn {
        padding: 16px 40px;
        font-size: 1.2rem;
    }

    section {
        padding: 5rem 15px;
        margin-top: 3rem;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
        padding-bottom: 0.6rem;
    }

    h2::after {
        width: 80px;
        height: 4px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card {
        max-width: 380px;
        margin: 0 auto;
    }

    .product-card img {
        height: 350px;
    }

    #progress-bar {
        align-items: flex-start;
    }

    .progress-step p {
        font-size: 0.9rem;
    }

    .toast-notification {
        min-width: unset;
        width: 90%;
        padding: 18px 30px;
        font-size: 1.05rem;
    }

    #confirmation-modal .modal-content {
        width: 90%;
        padding: 40px;
    }

    #confirmation-modal .modal-content p {
        font-size: 1.3rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 20px;
    }

    .modal-actions button {
        width: 100%;
    }

    .back-to-top {
        width: 60px;
        height: 60px;
        bottom: 35px;
        right: 35px;
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section p,
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    header .logo h1 {
        font-size: 1.8rem;
    }

    #hero {
        padding: 6rem 1rem;
        min-height: 45vh;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    #hero .btn {
        padding: 14px 30px;
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 15px;
        margin-top: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
    }

    h2::after {
        width: 60px;
        height: 3px;
    }

    .product-card img {
        height: 300px;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-info h3 {
        font-size: 1.4rem;
    }

    .product-info .price {
        font-size: 1.3rem;
    }

    .cart-item {
        padding: 20px 5px;
    }

    .cart-item .item-details h4 {
        font-size: 1.2rem;
    }

    .cart-item .quantity-controls {
        margin: 0;
    }

    .checkout-form-container {
        padding: 30px 15px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 25px;
        right: 25px;
        font-size: 1.6rem;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-product-info h3 {
        font-size: 1.8rem;
    }

    .modal-product-info .price {
        font-size: 1.6rem;
    }

    .radio-options-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    #hero {
        margin: 1.5rem;
    }

    #hero h2 {
        font-size: 4.5rem;
    }

    #hero p {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 3rem;
    }

    .product-card img {
        height: 300px;
    }

    .modal-content {
        max-width: 900px;
        padding: 3rem;
    }

    .modal-body {
        gap: 3rem;
    }

    .modal-product-info h3 {
        font-size: 2.8rem;
    }

    .modal-product-info .price {
        font-size: 2.4rem;
    }

    .cart-item img {
        width: 110px;
        height: 110px;
    }

    .cart-item .item-details h4 {
        font-size: 1.35rem;
    }

    .cart-item .item-price {
        font-size: 1.45rem;
    }

    .checkout-form-container {
        padding: 3rem 4rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    header .logo h1 {
        font-size: 2.5rem;
    }

    header nav ul {
        gap: 1.8rem;
    }

    header nav a {
        font-size: 1.05rem;
    }

    #hero {
        padding: 8rem 2rem;
        min-height: 65vh;
        margin: 1rem;
    }

    #hero h2 {
        font-size: 3.8rem;
    }

    #hero p {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    #hero .btn {
        padding: 1.2rem 3rem;
        font-size: 1.3rem;
    }

    section {
        padding: 6rem 0;
        margin-top: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
        padding-bottom: 0.7rem;
    }

    h2::after {
        width: 100px;
        height: 5px;
    }

    .search-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .search-bar input,
    .search-bar button {
        width: 100%;
        max-width: none;
        font-size: 1.15rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-card img {
        height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .product-info {
        padding: 2rem;
    }

    .product-info h3 {
        font-size: 1.6rem;
    }

    .product-info .price {
        font-size: 1.5rem;
    }

    .size-option {
        padding: 0.8rem 1.5rem;
        font-size: 1.05rem;
        margin: 0.3rem;
    }

    .cart-items-container {
        padding: 1rem;
    }

    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }

    .cart-item img {
        margin-bottom: 1rem;
        width: 100px;
        height: 100px;
        object-fit: cover;
    }

    .cart-item .item-details,
    .cart-item .quantity-controls,
    .cart-item .item-price {
        width: 100%;
        text-align: center;
        margin: 0.8rem 0;
    }

    .cart-item .quantity-controls {
        justify-content: center;
    }

    .cart-item .quantity-controls button {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
        margin: 0 0.5rem;
    }

    .cart-summary {
        padding: 2.5rem;
        margin: 1rem;
    }

    .cart-summary h3 {
        font-size: 2.2rem;
    }

    .checkout-form-container {
        padding: 2.5rem 2rem;
    }

    #checkout-header h3 {
        font-size: 2.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: left;
    }

    .back-to-top {
        width: 65px;
        height: 65px;
        bottom: 2.5rem;
        right: 2.5rem;
        font-size: 2rem;
    }

    .modal-content {
        width: 90%;
        max-width: 90vw;
        padding: 2.5rem;
        margin: 1rem;
    }

    .modal-body {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .modal-body img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .modal-product-info {
        text-align: center;
        width: 100%;
    }

    .modal-product-info h3 {
        font-size: 2.5rem;
    }

    .modal-product-info .price {
        font-size: 2.2rem;
    }

    .modal-product-info .size-options {
        justify-content: center;
        flex-wrap: wrap;
    }

    .modal-utility-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        line-height: 1.6;
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
        max-width: 100vw;
    }

    header {
        padding: 1rem 0;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .header-left {
        flex-grow: 1;
    }

    header nav {
        display: none;
    }

    #sidebar-toggle-btn {
        display: block;
        order: -1;
        padding: 0.5rem;
        margin-right: 1rem;
    }

    header .logo h1 {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    #hero {
        padding: 6rem 1rem;
        min-height: 50vh;
        margin: 1rem;
        border-radius: 12px;
    }

    #hero h2 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    #hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    #hero .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        white-space: nowrap;
    }

    section {
        padding: 4rem 1rem;
        margin-top: 2rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 0.6rem;
        text-align: center;
    }

    h2::after {
        width: 60px;
        height: 4px;
        left: 50%;
        transform: translateX(-50%);
    }

    .search-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin-bottom: 2rem;
    }

    .search-bar input,
    .search-bar button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .product-card {
        max-width: 100%;
        margin: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 12px;
        overflow: hidden;
    }

    .product-card img {
        height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-info h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .product-info .price {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .size-options {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin: 1rem 0;
    }

    .size-option {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 60px;
        text-align: center;
    }

    .cart-items-container {
        padding: 0.5rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .cart-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .cart-item .item-details {
        width: 100%;
        margin-bottom: 1rem;
    }

    .cart-item .item-details h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .cart-item .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 1rem 0;
        gap: 1rem;
    }

    .cart-item .quantity-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 50%;
    }

    .cart-item .quantity-controls span {
        font-size: 1.1rem;
        font-weight: bold;
        min-width: 30px;
        text-align: center;
    }

    .cart-item .item-price {
        font-size: 1.3rem;
        font-weight: bold;
        color: #e74c3c;
    }

    .cart-summary {
        padding: 2rem 1rem;
        margin: 1rem 0;
        border-radius: 12px;
    }

    .cart-summary h3 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .checkout-form-container {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    #checkout-header h3 {
        font-size: 2rem;
        text-align: center;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    #progress-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 2rem 0;
    }

    .progress-step {
        text-align: center;
        width: 100%;
    }

    .progress-step p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .toast-notification {
        width: calc(100% - 2rem);
        max-width: none;
        margin: 1rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .modal-content {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 12px;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .modal-body img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
    }

    .modal-product-info {
        text-align: center;
        width: 100%;
    }

    .modal-product-info h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .modal-product-info .price {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .modal-product-info .size-options {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .modal-utility-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
    }

    .modal-utility-buttons button {
        flex: 1;
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    #confirmation-modal .modal-content {
        width: calc(100vw - 2rem);
        padding: 2rem 1rem;
    }

    #confirmation-modal .modal-content p {
        font-size: 1.2rem;
        line-height: 1.5;
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .modal-actions button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-section p,
    .footer-links {
        justify-content: center;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 2rem;
        right: 2rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    header .logo h1 {
        font-size: 1.5rem;
    }

    #sidebar-toggle-btn {
        padding: 0.3rem;
        margin-right: 0.5rem;
    }

    #hero {
        padding: 4rem 1rem;
        min-height: 40vh;
        margin: 0.5rem;
    }

    #hero h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    #hero .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0.5rem;
        margin-top: 2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    h2::after {
        width: 50px;
        height: 3px;
    }

    .search-bar input,
    .search-bar button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .product-card {
        margin: 0 0.5rem;
    }

    .product-card img {
        height: 250px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .product-info .price {
        font-size: 1.1rem;
    }

    .size-option {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 50px;
    }

    .cart-item {
        padding: 1rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .cart-item .item-details h4 {
        font-size: 1.1rem;
    }

    .cart-item .quantity-controls button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .cart-item .item-price {
        font-size: 1.2rem;
    }

    .cart-summary {
        padding: 1.5rem 0.5rem;
    }

    .cart-summary h3 {
        font-size: 1.6rem;
    }

    .checkout-form-container {
        padding: 1.5rem 0.5rem;
    }

    #checkout-header h3 {
        font-size: 1.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .modal-content {
        width: calc(100vw - 1rem);
        padding: 1rem;
        margin: 0.5rem;
    }

    .modal-product-info h3 {
        font-size: 1.5rem;
    }

    .modal-product-info .price {
        font-size: 1.4rem;
    }

    .modal-utility-buttons button {
        min-width: 100px;
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .radio-options-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }

    .toast-notification {
        width: calc(100% - 1rem);
        margin: 0.5rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    header .logo h1 {
        font-size: 1.3rem;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    #hero .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .product-card img {
        height: 220px;
    }

    .modal-content {
        width: calc(100vw - 0.5rem);
        padding: 0.8rem;
        margin: 0.25rem;
    }

    .modal-product-info h3 {
        font-size: 1.3rem;
    }

    .modal-product-info .price {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
        padding: 4rem 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

#product-activity-feed {
    margin: 1.5rem 0;
}

.activity-notification {
    font-size: 0.95rem;
    color: var(--light-text);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background-color: var(--background-color);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px -5px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.activity-notification.visible {
    opacity: 1;
    transform: translateX(0);
}

.activity-notification strong {
    color: var(--text-color);
    font-weight: 700;
}

body.dark-mode .activity-notification {
    background-color: #2c2c2c;
    border-left-color: var(--accent-color);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination-container button {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-container button:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-btn-text-color);
    transform: scale(1.1);
}

.pagination-container button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0 1rem;
    min-width: 80px;
    text-align: center;
}
