/* General table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 !important; /* Force this margin */ /* Reduced top/bottom margin for less spacing */
}
th, td {
    border: 1px solid #ddd;
    padding: 6px; /* Reduced padding for better spacing */
    text-align: left;
}
th {
    background-color: #f4f4f4;
}
td a {
    color: #1DAB61;
    text-decoration: none;
}
td a:hover {
    text-decoration: underline;
}

/* Optional: Adjust margins for sections to improve spacing */
.famous-things, .customized-gifts {
    margin: 10px 0; /* Adjusted margin for sections */
}
.container {
    margin: 20px auto;
    max-width: 1200px;
}

/* Product table styling */
.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px;
}

.gift-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.gift-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gift-item h3 a {
    text-decoration: none;
    color: #333;
}

.gift-item p {
    font-size: 1rem;
    color: #555;
}

.rating {
    font-size: 0.9rem;
    color: #f39c12;
}

/* Category and theme list styling */
.category-list, .theme-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.category-list li, .theme-list li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.category-list a, .theme-list a {
    padding: 8px 12px;
    background-color: #ffdd99;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.category-list a:hover, .theme-list a:hover {
    background-color: #ffbb33;
    color: #fff;
}

/* Category table styling for Explore More in Home Décor */
.category-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.category-table td {
    width: 25%;
    padding: 15px;
    text-align: center;
    background-color: #f0f0f5;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
}
.category-table td a {
    display: block;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.category-table td:hover {
    background-color: #e0e0eb;
}
/* Product Grid */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}


//* Grid Layout for Products */
#products {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ensures 3 columns */
    gap: 20px; /* Space between grid items */
    padding: 20px;
    max-width: 1200px; /* Restrict grid width for consistent layout */
    margin: 0 auto; /* Center the grid */
}

/* Product Item */
.product {
    text-align: center;
    background: #fff; /* Optional: Add background color */
    padding: 10px;
    border: 1px solid #ddd; /* Optional: Add border */
    border-radius: 5px; /* Optional: Rounded corners */
    transition: transform 0.3s ease; /* For hover effect */
}

/* Product Image */
.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Product Text */
.product p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Hover Effect */
.product:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #products {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns */
    }
}

@media (max-width: 480px) {
    #products {
        grid-template-columns: 1fr; /* Switch to 1 column */
    }
}

