/* GiftTree Component Styles */

/* Desktop Header Components */
.desktop-header {
    display: none;
}

.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

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

.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar {
    width: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    font-size: 14px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.header-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Desktop Navigation */
.main-nav {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: white;
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
    position: relative;
    display: inline-block;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
}

.nav-menu .dropdown-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 600px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    display: none;
    z-index: 9999;
    border: 1px solid #e0e0e0;
    margin-top: 0;
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-content {
    display: flex;
    padding: 30px;
    gap: 40px;
}

.dropdown-column {
    flex: 1;
}

.dropdown-column h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
}

.dropdown-column a:hover {
    color: var(--primary-color);
    background: rgba(233, 30, 99, 0.1);
    padding-left: 10px;
}

/* Product Card Components */
.product-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.product-badge.new {
    background: var(--secondary-color);
}

.product-badge.limited {
    background: var(--accent-color);
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
    cursor: pointer;
}

.wishlist-btn.active {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.add-to-cart {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.add-to-cart:hover {
    background: #C51E5A;
    transform: translateY(-1px);
}

/* Filter Components */
.filter-section {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-toggle {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sort-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    color: var(--text-dark);
    outline: none;
}

.quick-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Cart Components */
.cart-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

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

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-addons {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.item-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-left: 12px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.qty-display {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    min-width: 40px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4757;
    font-size: 16px;
    padding: 8px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.remove-item:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* Delivery Components */
.delivery-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.delivery-option.selected {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.05);
}

.delivery-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    margin-right: 12px;
}

.delivery-icon {
    width: 40px;
    height: 40px;
    background: var(--pink-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-right: 12px;
}

.delivery-details {
    flex: 1;
}

.delivery-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.delivery-time {
    font-size: 12px;
    color: var(--text-light);
}

.delivery-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.free-delivery {
    color: var(--secondary-color);
}

/* Coupon Components */
.coupon-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

.coupon-input:focus {
    border-color: var(--primary-color);
}

.apply-coupon-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.available-coupons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.available-coupons::-webkit-scrollbar {
    display: none;
}

.coupon-chip {
    background: #f8f9fa;
    border: 1px dashed var(--primary-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.coupon-chip:hover {
    background: rgba(233, 30, 99, 0.1);
}

.applied-coupon {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-coupon {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 12px;
    cursor: pointer;
}

/* Order Summary Components */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-light);
}

.summary-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.savings-highlight {
    color: var(--secondary-color);
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

/* Product Gallery Components */
.product-gallery {
    background: white;
    position: relative;
}

.main-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

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

.gallery-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

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

.image-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.thumbnail-gallery {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* Desktop Responsive Adjustments */
@media (min-width: 992px) {
    .desktop-header {
        display: block;
    }

    .products-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    .product-card-mobile {
        width: 100%;
        transition: transform 0.3s;
    }

    .product-card-mobile:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .product-image {
        height: 200px;
    }

    .main-image-container {
        height: 500px;
    }

    .item-image {
        width: 100px;
        height: 100px;
    }
}