/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f3f3f3;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #0066c0;
}

a:hover {
    
    color: #016706;
}

/* Header Styles */
.header {
    background-color: #131921;
    color: white;
    padding: 0 20px;
}

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    padding: 15px 0;
    gap: 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    flex: 0 0 auto;
    margin-right: 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.user-nav-item {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

.user-nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Enhanced Wishlist Styles */
.wishlist-items {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.wishlist-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.wishlist-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff9900;
}

.wishlist-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff9900, #ff6b00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wishlist-item:hover::before {
    opacity: 1;
}

.wishlist-item .product-image {
    flex: 0 0 120px;
    height: 120px;
    margin-right: 25px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.wishlist-item .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wishlist-item:hover .product-image img {
    transform: scale(1.05);
}

.wishlist-item .product-info {
    flex: 1;
    margin-right: 20px;
}

.wishlist-item .product-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #131921;
    margin-bottom: 8px;
    line-height: 1.3;
}

.wishlist-item .product-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #b12704;
    margin-bottom: 6px;
}

.wishlist-item .product-info .stock {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.wishlist-item .product-info .stock:not(.out-of-stock) {
    background: #d4edda;
    color: #155724;
}

.wishlist-item .product-info .stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.wishlist-item .product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

/* Guest notice styles */
.guest-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-notice i {
    color: #f39c12;
    font-size: 18px;
}

.guest-notice a {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
}

.guest-notice a:hover {
    text-decoration: underline;
}

/* Wishlist item removal animation */
.wishlist-item.removing {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
}

.btn-add-to-cart, .btn-remove {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #ff9900, #ff8c00);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #ff8c00, #ff7f00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    color: white;
    text-decoration: none;
}

.btn-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-remove {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    text-decoration: none;
}

.btn-view {
    background: transparent;
    color: #0066c0;
    border: 1px solid #0066c0;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.btn-view:hover {
    background: #0066c0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 192, 0.3);
    text-decoration: none;
}

/* Wishlist empty state */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.wishlist-empty i {
    font-size: 80px;
    color: #e9ecef;
    margin-bottom: 20px;
}

.wishlist-empty h2 {
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 400;
}

.wishlist-empty p {
    color: #868e96;
    margin-bottom: 30px;
}

.btn-shop {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff9900, #ff8c00);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Wishlist animations */
@keyframes wishlistItemAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wishlist-item {
    animation: wishlistItemAppear 0.5s ease forwards;
}

.wishlist-item:nth-child(1) { animation-delay: 0.1s; }
.wishlist-item:nth-child(2) { animation-delay: 0.2s; }
.wishlist-item:nth-child(3) { animation-delay: 0.3s; }
.wishlist-item:nth-child(4) { animation-delay: 0.4s; }
.wishlist-item:nth-child(5) { animation-delay: 0.5s; }

/* Wishlist header */
.account-content h1 {
    color: #131921;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-content h1::before {
    content: "❤️";
    font-size: 24px;
}

/* Wishlist item count */
.wishlist-count-badge {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Responsive design for wishlist */
@media (max-width: 768px) {
    .wishlist-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .wishlist-item .product-image {
        margin-right: 0;
        margin-bottom: 15px;
        flex: none;
        width: 100px;
        height: 100px;
    }
    
    .wishlist-item .product-info {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .wishlist-item .product-actions {
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-view, .btn-add-to-cart, .btn-remove {
        flex: 1;
        min-width: 120px;
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .wishlist-item {
        padding: 12px;
    }
    
    .wishlist-item .product-info h3 {
        font-size: 16px;
    }
    
    .wishlist-item .product-info .price {
        font-size: 18px;
    }
    
    .wishlist-item .product-actions {
        flex-direction: column;
    }
    
    .btn-view, .btn-add-to-cart, .btn-remove {
        width: 100%;
        margin: 2px 0;
    }
}

/* Wishlist item removal animation */
.wishlist-item.removing {
    animation: wishlistItemRemove 0.3s ease forwards;
}

@keyframes wishlistItemRemove {
    to {
        opacity: 0;
        transform: translateX(100%);
        height: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
}

/* Wishlist success message */
.wishlist-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-success i {
    color: #28a745;
}

/* Wishlist loading state */
.wishlist-loading {
    text-align: center;
    padding: 40px;
}

.wishlist-loading i {
    font-size: 40px;
    color: #ff9900;
    animation: wishlistLoading 1s infinite;
}

@keyframes wishlistLoading {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Wishlist and Cart Links */
.wishlist-link, .cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.wishlist-link {
    color: #ffffff;
}

.wishlist-link:hover {
    color: #ff9500;
}

.cart-link {
    color: #ffffff;
}

.cart-link:hover {
    color: #ff9500;
}

.wishlist-link i, .cart-link i {
    font-size: 18px;
    margin-right: 5px;
}

.wishlist-text, .cart-text {
    margin-right: 5px;
}

.wishlist-count, .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    padding: 2px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.wishlist-count {
    background: #ff4757;
    color: white;
}

.cart-count {
    background: #0066c0;
    color: white;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    opacity: 0.7;
    transform: scale(0.8);
}

.count-updated {
    transform: scale(1.2);
    background-color: #ff6b81;
}

/* Login/Register Buttons */
.login-btn, .register-btn {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.login-btn:hover, .register-btn:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.user-menu-toggle {
    background: none;
    border: none;
    color: #ff9900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.user-menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1002;
    border-radius: 4px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #FF9900;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* Improved Search Bar Styles */
.search-container {
    flex: 1;
    min-width: 0;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
}

.search-form {
    display: flex;
    height: 44px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    border: 2px solid transparent;
    position: relative;
}

.search-form:focus-within {
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.25);
    border-color: #FF9900;
    transform: translateY(-1px);
}

.search-bar {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.search-category {
    appearance: none;
    padding: 0 35px 0 15px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    outline: none;
    border-right: 1px solid #e2e8f0;
    min-width: 140px;
    position: relative;
    transition: all 0.3s ease;
}

.search-category:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.search-category-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-category-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #4a5568;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.search-form:focus-within .search-category-wrapper::after {
    transform: translateY(-50%) rotate(180deg);
    color: #FF9900;
}

.search-bar input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
}

.search-bar input[type="text"]::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-bar input[type="text"]:focus {
    color: #1a202c;
}

.search-bar button[type="submit"] {
    width: 60px;
    background: linear-gradient(135deg, #FF9900 0%, #FF8C00 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.search-bar button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.search-bar button[type="submit"]:hover::before {
    left: 100%;
}

.search-bar button[type="submit"]:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F00 100%);
    transform: scale(1.05);
}

.search-bar button[type="submit"] i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.search-bar button[type="submit"]:hover i {
    transform: scale(1.1);
}

/* Search Suggestions Enhancement */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border: 2px solid #FF9900;
    border-top: none;
    margin-top: -2px;
}

.search-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f7fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #FF9900;
    padding-left: 25px;
}

.search-suggestion-item i {
    color: #a0aec0;
    font-size: 14px;
    width: 16px;
}

.search-suggestion-item:hover i {
    color: #FF9900;
}

/* Search Bar Animation */
@keyframes searchGlow {
    0% { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 4px 25px rgba(255, 153, 0, 0.35); }
    100% { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
}

.search-glow {
    animation: searchGlow 2s ease-in-out;
}

/* Responsive Design for Search Bar */
@media (max-width: 768px) {
    .search-container {
        order: 3;
        min-width: 100%;
        margin: 10px 0;
        max-width: none;
    }
    
    .search-form {
        height: 42px;
        border-radius: 21px;
    }
    
    .search-category {
        min-width: 120px;
        font-size: 13px;
        padding: 0 30px 0 12px;
    }
    
    .search-bar input[type="text"] {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .search-bar button[type="submit"] {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .search-form {
        height: 40px;
        border-radius: 20px;
    }
    
    .search-category {
        min-width: 100px;
        font-size: 12px;
        padding: 0 25px 0 10px;
    }
    
    .search-category-wrapper::after {
        right: 8px;
        font-size: 10px;
    }
    
    .search-bar input[type="text"] {
        font-size: 14px;
        padding: 0 12px;
    }
    
    .search-bar input[type="text"]::placeholder {
        font-size: 14px;
    }
    
    .search-bar button[type="submit"] {
        width: 45px;
    }
    
    .search-bar button[type="submit"] i {
        font-size: 16px;
    }
}

/* Enhanced Focus States */
.search-category:focus {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #FF9900;
}

.search-bar input[type="text"]:focus {
    background: #fafafa;
}

/* Loading State for Search */
.search-loading .search-bar button[type="submit"] i {
    animation: searchSpin 1s linear infinite;
}

@keyframes searchSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State */
.search-success .search-form {
    border-color: #48bb78;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.25);
}

/* Error State */
.search-error .search-form {
    border-color: #f56565;
    box-shadow: 0 4px 20px rgba(245, 101, 101, 0.25);
}

/* Navigation */
.navbar {
    background-color: #232f3e;
    padding: 0;
    position: relative;
    z-index: 500;
}

.navbar-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.navbar > ul > li {
    position: relative;
}

.navbar a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.navbar > ul > li > a {
    border-bottom: 3px solid transparent;
}

.navbar > ul > li > a:hover,
.navbar > ul > li:hover > a {
    background-color: #485769;
    text-decoration: none;
    color: white;
    border-bottom-color: #ff9900;
}

/* Dropdown and Mega Menu */
.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.navbar > ul > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .mega-menu {
    width: 100%;
    left: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #f0c14b #f5f5f5;
}

.navbar .mega-menu::-webkit-scrollbar {
    width: 8px;
}

.navbar .mega-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.navbar .mega-menu::-webkit-scrollbar-thumb {
    background-color: #f0c14b;
    border-radius: 4px;
}

.navbar .mega-menu-column h3 {
    color: #131921;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.navbar .mega-menu-column ul {
    display: block;
}

.navbar .mega-menu-column li {
    margin-bottom: 8px;
}

.navbar .mega-menu-column a {
    color: #333;
    padding: 5px 0;
    font-size: 13px;
}

.navbar .mega-menu-column a:hover {
    color: #ff9900;
    background: transparent;
    padding-left: 5px;
}

.navbar .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
}

.navbar .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.navbar .has-submenu > a::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
}

.navbar a:hover {
    text-decoration: none;
    color: #febd69;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 15px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    padding-top: 0 !important;
    margin-top: 140px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #232f3e 0%, #131921 100%);
    color: white;
    padding: 20px 20px 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
    margin-top: -180px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #febd69, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 0px rgba(255, 153, 0, 0.2);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #ff9900, #ff6b00, #ff9900);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: 2px;
}

.hero-highlight {
    display: inline-block;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #ff9900 0%, #ff6b00 50%, #ff9900 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ff9900;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.hero-highlight:hover {
    transform: translateY(-5px) scale(1.05);
    text-shadow: 0 10px 20px rgba(255, 153, 0, 0.3);
    background-position: 100% 100%;
}

.hero-highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff9900, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.hero-highlight:hover::before {
    transform: scaleX(1);
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: titleReveal 0.7s ease-out forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.25s; }
.hero-title span:nth-child(3) { animation-delay: 0.4s; }
.hero-title span:nth-child(4) { animation-delay: 0.55s; }
.hero-title span:nth-child(5) { animation-delay: 0.7s; }

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title .word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: letterIn 0.6s ease-out forwards;
}

.hero-title .word span:nth-child(1) { animation-delay: 0.05s; }
.hero-title .word span:nth-child(2) { animation-delay: 0.10s; }
.hero-title .word span:nth-child(3) { animation-delay: 0.15s; }
.hero-title .word span:nth-child(4) { animation-delay: 0.20s; }
.hero-title .word span:nth-child(5) { animation-delay: 0.25s; }
.hero-title .word span:nth-child(6) { animation-delay: 0.30s; }
.hero-title .word span:nth-child(7) { animation-delay: 0.35s; }
.hero-title .word span:nth-child(8) { animation-delay: 0.40s; }
.hero-title .word span:nth-child(9) { animation-delay: 0.45s; }
.hero-title .word span:nth-child(10) { animation-delay: 0.50s; }
.hero-title .word span:nth-child(11) { animation-delay: 0.55s; }
.hero-title .word span:nth-child(12) { animation-delay: 0.60s; }

/* Keyframes */
@keyframes letterIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-highlight:hover {
        transform: translateY(-3px) scale(1.03);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-shop-now, .btn-explore {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 230, 4, 0.2);
}

.btn-shop-now {
    background: linear-gradient(to right, #ff9900, #ff8c00);
    color: white;
    border: none;
}

.btn-shop-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-explore {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-explore:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-3px);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.decoration-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.decoration-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 8px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 8px;
}

.product-title {
    font-size: 13px;
    margin-bottom: 6px;
    height: 50px;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #026409;
    margin-bottom: 6px;
}

.product-rating {
    color: #ffa41c;
    margin-bottom: 2px;
    font-size: 6px;
}

.add-to-cart {
    background-color: #ffd814;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #f7ca00;
}

/* Account Page */
.account-page {
    padding: 30px 20px;
}

.account-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.account-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.account-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.account-avatar {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.account-avatar i {
    font-size: 60px;
    color: #232f3e;
}

.account-avatar h3 {
    margin-top: 10px;
    font-size: 18px;
}

.account-menu {
    margin-top: 20px;
}

.account-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.account-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.account-menu a:hover {
    background: #f5f5f5;
    color: #0066c0;
}

.account-menu a.active {
    background: #e6f2ff;
    color: #0066c0;
    font-weight: 600;
}

.account-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.account-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #131921;
    display: flex;
    align-items: center;
}

.account-section h2 i {
    margin-right: 10px;
    color: #0066c0;
}

.account-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.order-history {
    display: grid;
    gap: 15px;
}

.order-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.shipped {
    background: #cce5ff;
    color: #004085;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Buttons */
.btn-edit, .btn-add, .btn-view, .btn-view-all, .btn-shop {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-edit, .btn-add {
    background: #f0c14b;
    color: #111;
    border: 1px solid #a88734;
}

.btn-edit:hover, .btn-add:hover {
    background: #ddb347;
}

.btn-view, .btn-view-all, .btn-shop {
    background: #0066c0;
    color: white;
    border: 1px solid #0066c0;
}

.btn-view:hover, .btn-view-all:hover, .btn-shop:hover {
    background: #0056a3;
}

/* Cart Notifications */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #075cc5 !important;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 30px;
    position: relative;
    z-index: 100;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
    
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #3a4553;
}

.footer-bottom .logo img {
    height: 30px;
}

.footer-bottom p {
    font-size: 12px;
    color: #ddd;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 30px auto;
    background-color: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #131921;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #febd69;
}

.form-submit {
    background-color: #f0c14b;
    border: 1px solid #a88734;
    padding: 10px 20px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #ddb347;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* Admin Styles */
.admin-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-nav a {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
}

.admin-nav a:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #131921;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-rating {
    margin-bottom: 15px;
}

.product-rating i {
    color: #ffa41c;
}

.product-price .price {
    font-size: 24px;
    color: #b12704;
}

.product-price .shipping {
    font-size: 14px;
    color: #565959;
}

.product-stock .in-stock {
    color: #067d62;
    font-weight: bold;
}

.product-stock .out-of-stock {
    color: #b12704;
    font-weight: bold;
}

.product-actions {
    margin: 20px 0;
}

.quantity-selector {
    margin-bottom: 15px;
}

.quantity-selector select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-left: 10px;
}

.add-to-cart-btn, .buy-now-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
}

.add-to-cart-btn {
    background-color: #ffd814;
    border: none;
}

.add-to-cart-btn:hover {
    background-color: #f7ca00;
}

.buy-now-btn {
    background-color: #ffa41c;
    border: none;
}

.buy-now-btn:hover {
    background-color: #fa8900;
}

.delivery-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 14px;
}

.product-description, .product-reviews {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}



/* Order Confirmation */
.order-confirmation {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 4px;
}

.confirmation-message {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== PRODUCT PAGE ENHANCEMENTS ===== */
/* These styles only affect product.php and won't interfere with existing styles */

/* Product Detail Page Layout Enhancements */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.product-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9900, #ff6b00, #ff9900);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Product Images Section */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* Product Info Section */
.product-info {
    padding: 0;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #131921;
    margin-bottom: 15px;
    line-height: 1.3;
    background: linear-gradient(135deg, #131921 0%, #2d3748 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



.product-rating i {
    color: #ffa41c;
    font-size: 16px;
}

.product-rating span {
    font-weight: 600;
    color: #131921;
}

.product-rating a {
    color: #0066c0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.product-rating a:hover {
    color: #ff9900;
    text-decoration: none;
}



.price {
    font-size: 32px;
    font-weight: 800;
    color: #b12704;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(177, 39, 4, 0.1);
}

.shipping {
    font-size: 16px;
    color: #067d62;
    font-weight: 600;
}

.product-stock {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.in-stock {
    color: #067d62;
    background: #d4edda;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.in-stock::before {
    content: "✓";
    font-weight: bold;
}

.out-of-stock {
    color: #b12704;
    background: #f8d7da;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.out-of-stock::before {
    content: "✗";
    font-weight: bold;
}

/* Enhanced Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.add-to-cart-btn, .add-to-wishlist-btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #ff9900 0%, #ff8c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
    background: linear-gradient(135deg, #ff8c00 0%, #ff7f00 100%);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

.add-to-wishlist-btn {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    position: relative;
}

.add-to-wishlist-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.add-to-wishlist-btn.wishlist-added {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.add-to-wishlist-btn i {
    transition: transform 0.3s ease;
}

.add-to-wishlist-btn:hover i {
    transform: scale(1.2);
}

/* Delivery Info Styling */
.delivery-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 4px solid #2196f3;
}

.delivery-info p {
    margin: 8px 0;
    color: #1565c0;
    font-weight: 500;
}

.delivery-info strong {
    color: #0d47a1;
}

/* Product Description Section */
.product-description {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.product-description h2 {
    color: #131921;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff9900;
    display: inline-block;
}

.product-description p {
    line-height: 1.8;
    color: #4a5568;
    font-size: 16px;
}

/* Reviews Section */
.product-reviews {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.product-reviews h2 {
    color: #131921;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.view-all-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0066c0 0%, #0052a3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-reviews:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 192, 0.3);
    color: white;
    text-decoration: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States for Buttons */
.add-to-cart-btn:disabled,
.add-to-wishlist-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.add-to-cart-btn.loading::after,
.add-to-wishlist-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Product Page */
@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .product-info h1 {
        font-size: 24px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .add-to-cart-btn, .add-to-wishlist-btn {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .main-image {
        height: 280px;
        padding: 15px;
    }
    
    .product-info h1 {
        font-size: 22px;
    }
    
    .price {
        font-size: 24px;
    }
    
    .product-rating {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-buttons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 12px;
        border-radius: 12px;
    }
    
    .main-image {
        height: 220px;
        padding: 12px;
    }
    
    .product-info h1 {
        font-size: 20px;
    }
    
    .price {
        font-size: 22px;
    }
    
    .add-to-cart-btn, .add-to-wishlist-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .product-description,
    .product-reviews {
        padding: 20px;
    }
}

/* Additional Visual Enhancements */
.product-detail hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9900, transparent);
    margin: 25px 0;
    opacity: 0.5;
}

/* Floating Animation for Key Elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.product-detail:hover .main-image {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Borders */
.product-description, .product-reviews {
    position: relative;
}

.product-description::before, .product-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9900, #ff6b00, #ff9900);
    border-radius: 3px 3px 0 0;
}

/* Hover Effects for Interactive Elements */
.view-all-reviews, .product-rating a {
    position: relative;
    overflow: hidden;
}

.view-all-reviews::before, .product-rating a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.view-all-reviews:hover::before, .product-rating a:hover::before {
    left: 100%;
}

.confirmation-message i {
    font-size: 60px;
    color: #067d62;
    margin-bottom: 15px;
}

.confirmation-message h1 {
    color: #067d62;
    margin-bottom: 10px;
}

.ordered-items {
    margin: 20px 0;
}

.ordered-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ordered-item:last-child {
    border-bottom: none;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: #f0c14b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #131921;
    transform: scale(1.1);
}

.category-title {
    font-size: 12px;
    margin-bottom: 8px;
    color: #131921;
    font-weight: 600;
}

.shop-now {
    display: inline-block;
    padding: 4px 8px;
    background: #f0c14b;
    color: #111;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.shop-now:hover {
    background: #ddb347;
    text-decoration: none;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-image {
    width: 100px;
    margin-right: 20px;
}

.item-image img {
    max-width: 100%;
    height: auto;
}

.item-details {
    flex-grow: 1;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    background-color: #f0f2f2;
    border: 1px solid #d5d9d9;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #e3e6e6;
}

.quantity-btn:active {
    background-color: #d5d9d9;
}

.quantity {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.item-subtotal {
    min-width: 100px;
    text-align: right;
    font-weight: bold;
    margin: 0 20px;
}

.item-remove button {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 18px;
}

.remove-btn {
    background: none;
    border: none;
    color: #0066c0;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.remove-btn:hover {
   
    color: #c45500;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Order Summary */
.order-summary {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
}

.continue-shopping {
    text-align: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container, .header-top {
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .logo {
        margin-right: 10px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .search-container {
        order: 3;
        min-width: 100%;
        margin: 10px 0;
    }
    
    .user-nav {
        gap: 5px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar ul {
        flex-direction: column;
        display: none;
    }
    
    .navbar.active ul {
        display: flex;
    }
    
    /* Increased margin-top for mobile to prevent content hiding behind header */
    .main-content {
        margin-top: 80px !important; /* Increased from 140px */
        
    }
    
    .hero {
        margin-top: -200px; /* Adjusted to match new header spacing */
        padding: 25px 15px 50px 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .account-container {
        flex-direction: column;
    }
    
    .account-sidebar {
        flex: none;
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .item-image {
        margin-right: 0;
    }
    
    .item-subtotal {
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
    }
    
    .user-nav-item {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .wishlist-link, .cart-link {
        padding: 6px 8px;
    }
    
    /* Further increased margin for very small screens */
    .main-content {
        margin-top: 190px !important;
        
    }
    
    .hero {
        margin-top: -210px;
        padding: 20px 10px 40px 10px;
        margin-bottom: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 20px;
        margin: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    /* Adjust header top padding for better spacing */
    .header-top {
        padding: 12px 0;
    }
    
    /* Ensure navbar doesn't overlap content */
    .navbar {
        position: relative;
        z-index: 999;
    }
}

/* Additional safety margin for very small screens */
@media (max-width: 360px) {
    .main-content {
        margin-top: 200px !important;
    }
    
    .hero {
        margin-top: -220px;
    }
    
    .header-top {
        padding: 10px 0;
    }
}

/* Fix for when navbar is expanded on mobile */
@media (max-width: 768px) {
    .navbar.active {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #232f3e;
        z-index: 1001;
    }
    
    .navbar.active + .main-content {
        margin-top: 280px !important; /* Extra space when menu is open */
    }
}

/* Ensure content is properly spaced when page loads */
body {
    padding-top: 0;
}

/* Fix for fixed header overlapping anchor links */
html {
    scroll-padding-top: 160px; /* This helps anchor links scroll to the right position below the header */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 180px; /* Adjusted for mobile */
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 190px; /* Further adjustment for small screens */
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }
.grid { display: grid; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Print Styles */
@media print {
    .header, .footer, .navbar {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-content {
        margin-top: 0;
        padding-top: 0;
    }
}


.vendor-breakdown {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.vendor-breakdown h4 {
    color: #444;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.vendor-group {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.vendor-header {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.vendor-item, .vendor-shipping, .vendor-total {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.vendor-item {
    color: #666;
}

.vendor-shipping {
    border-top: 1px dashed #ddd;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.vendor-total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    color: #333;
}